<table border="1">
	<thead>
	<tr>
		<th>Name</th>
		<th>Serial</th>		
		<th>IsEmpty</th>
		<th>Inprocess</th>
		<th>Действия</th>
	</tr>
	</thead>	
	<?php 
	foreach ($this->cartriges as $item):
	?>
	<tr>
    	<td><a href="<?php echo $this->url(array(
										'controller' => 'cartrige',
										'action' => 'view',
    									'id' => $item->id
				)); ?>"><?php echo $item->name; ?></a></td>
    	<td><?php echo $item->serial; ?></td>    	
    	<td><?php echo $item->isempty; ?></td>
    	<td><?php echo $item->inprocess; ?></td>
        <td><a href="<?php echo $this->url(array(
										'controller' => 'cartrige',
										'action' => 'edit',
    									'id' => $item->id
				)); ?>">редактировать</a>&nbsp;<a href="<?php echo $this->url(array(
								'controller' => 'cartrige',
								'action' => 'delete',
								'id' => $item->id
		)); ?>">удалить</a></td>    	
  	</tr>
  	<?php endforeach;?>  	
</table>
<p><a href="<?php echo $this->url(array(
	'controller' => 'cartrige',
	'action' => 'add'
)); ?>">Добавить картридж</a></p>


